﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.IO.IsolatedStorage;
namespace myNico.view
{
    /// <summary>
    /// w_new.xaml 的交互逻辑
    /// </summary>
    public partial class w_new : Window
    {
        public w_new()
        {
            InitializeComponent();
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Mode.Mo_downPath mo =  new Mode.Mo_downPath();
            mo.path= T_url.Text;
            Dao.Dao_config.SaveAsIo(mo, "Path");
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            List<Mode.Mo_downPath> list = Dao.Dao_config.LoadFromIo( "Path");
            T_url.Text = list[0].path;
        }
    }
}
